<?php
$this->breadcrumbs=array(
    'Notes'=>array('index'),
    'Notice',
);

$this->menu=array(
    array('label'=>'List Notes', 'url'=>array('index')),
    array('label'=>'Create Notes', 'url'=>array('create')),
    array('label'=>'Update Notes', 'url'=>array('update', 'id'=>$model->id)),
    array('label'=>'Delete Notes', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
    array('label'=>'Manage Notes', 'url'=>array('admin')),
);
?>

<div id="notes">
    <div class="note">
        <div class="title"><h2>上次有未完成的操作</h2></div>
        <div class="content">
            <ul>
                <?php if(empty($model->id)):?>
                <li><?php echo CHtml::link('继续上次操作', array('create'))?></li>
                <?php else:?>
                <li><?php echo CHtml::link('继续上次操作', array('update', 'id' => $model->id))?></li>
                <?php endif;?>
                <?php if (empty($id)):?>
                <li><?php echo CHtml::link('清除缓存，继续操作', array('create', 'ct' => 1))?></li>
                <?php else:?>
                <li><?php echo CHtml::link('清除缓存，继续操作', array('update', 'id' => $id, 'ct' => 1))?></li>
                <?php endif;?>
            </ul>
        </div>
    </div>
</div>